package com.polymathcoder.dpastry.api;

import com.polymathcoder.dpastry.api.config.Configuration;
import com.polymathcoder.dpastry.api.config.ConfigurationException;

/**
 * Created by IntelliJ IDEA.
 * User: Drew
 * Date: Jul 5, 2010
 * Time: 10:33:08 AM
 * To change this template use File | Settings | File Templates.
 */
public interface Service<C extends Configuration> {
    public void initialize(C cfg) throws ConfigurationException;

    public boolean start();

    public boolean stop();

    public boolean isRunning();

    public void destroy();

    public void forceDestroy();
}
